<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>
		<p:dataTable var="audit" value="#{dtInventoryAuditLazyView.lazyModel}"
			paginator="true" rows="10"
			paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
			rowsPerPageTemplate="5,10,15" lazy="true">
			<p:column headerText="Id" sortBy="#{audit.id}" filterBy="#{audit.id}">
				<h:outputText value="#{audit.id}" />
			</p:column>
			<p:column headerText="Name" sortBy="#{audit.name}"
				filterBy="#{audit.name}">
				<h:outputText value="#{audit.name}" />
			</p:column>
			<p:column headerText="Description" sortBy="#{audit.description}"
				filterBy="#{audit.description}">
				<h:outputText value="#{audit.description}" />
			</p:column>
			<p:column headerText="Quantity">
				<h:outputText value="#{audit.quantity}" />
			</p:column>
			<p:column headerText="Unit" sortBy="#{audit.unit.description}"
				filterBy="#{audit.unit.description}">
				<h:outputText
					value="#{audit.unit.description} (#{audit.unit.abbreviation})" />
			</p:column>
			<p:column headerText="Status">
				<h:outputText value="#{audit.status}" />
			</p:column>
		</p:dataTable>
	</ui:composition>
</body>
</html>